package com.blog.pojo.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;

@Data
public class BlogInfoResponse {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String title;
    private Integer userId;
    private String content;
//public String getContent(){
//    return content==null?"":content.substring(0,50);
//}
    //    private Integer deleteFlag;
    @JsonFormat(pattern = "yyyy/MM/dd")
    private LocalDate time;

    //    public String getCreateTime() {
//        return DateUtils.dateFormat(createTime);
//    }
//    private LocalDate updateTime;
}
